package com.wupo.demo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 部门 实例
 *
 * @author wupo
 * @since 2020-02-23
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_dept")
@ApiModel(value="SysDept实例", description="部门")
public class SysDept implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "部门编号")
    @TableId(value = "dept_id",type = IdType.NONE)
    private Long deptId;

    @ApiModelProperty(value = "部门名称")
    @TableField("dept_name")
    private String deptName;

    @ApiModelProperty(value = "帐号状态（0正常 1停用）")
    @TableField("status")
    @TableLogic
    private String status;

    @ApiModelProperty(value = "删除标志（0代表存在 2代表删除）")
    @TableField(value = "del_flag",fill = FieldFill.INSERT)
    private String delFlag;

    @ApiModelProperty(value = "最后登陆IP")
    @TableField("login_ip")
    private String loginIp;

    @ApiModelProperty(value = "登录时间")
    @TableField("login_date")
    private Date loginDate;

    @ApiModelProperty(value = "创建者")
    @TableField(value = "create_by",fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新者")
    @TableField(value = "update_by",fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "数据源")
    @TableField("db_source")
    private String dbSource;


}
